package com.lagou.homework1;

public class Coder extends Company {

    public Coder () {}
    public Coder (String name, int id, int salary) {
        super(name, id, salary);
        //setName(name);
        //setId(id);
        //setSalary(salary);
    }
    //因为要判断对象是程序员还是项目经理 重写的意义不大就直接分开定义了
    public void work(){
        System.out.println("工号为" + getId() + "基本工资为" + getSalary() + "的程序员" + getName() + "正在努力的写着代码...");
    }

}
